package ru.jexp.rcp.supply.beans.correlate;

import java.util.List;

import ru.jexp.izdelie.scet.RaznesenieStrokiNakladnoi;
import ru.jexp.rcp.supply.ServerConnection;
import ru.jexp.ucet.nakladnaa.Nakladnaa;

public class CorrelateModel {

	private Nakladnaa nakl;
	private List<RaznesenieStrokiNakladnoi> strNakl;

	public void setNakl(Nakladnaa nakl) {
		this.nakl = nakl;
		setNaklStr(ServerConnection.getUrlConnection()
				.searchNaklStrNotCorrelate(nakl));
	}

	public Nakladnaa getNakl() {
		return nakl;
	}

	public List<RaznesenieStrokiNakladnoi> getStrNakl() {
		return strNakl;
	}

	private void setNaklStr(List<RaznesenieStrokiNakladnoi> strNakl) {
		this.strNakl = strNakl;
	}
}
